﻿using System;

namespace LogicAnalyzerCommon
{
    public class UnsupportedBufferSizeException : Exception
    {
        internal int BufferSize { get; private set; }

        public UnsupportedBufferSizeException(int bufferSize)
        {
            this.BufferSize = bufferSize;
        }
    }

    public class CrcException : Exception
    {
        public CrcException(string message)
            : base(message)
        {
        }
    }

    public class UnexpectedResponseException : Exception
    {
        public UnexpectedResponseException(string message)
            : base(message)
        {
        }
    }

    public class InvalidSettingsException : Exception
    {
        public InvalidSettingsException(string message)
            : base(message)
        {
        }
    }
}
